package com.lmx.repoDomain.repository;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Component;

import com.lmx.persistence.service.RegisterService;
import com.lmx.repoDomain.tmodel.AuthCode;

import io.katharsis.queryParams.QueryParams;
import io.katharsis.repository.annotations.JsonApiFindAll;
import io.katharsis.repository.annotations.JsonApiResourceRepository;


@JsonApiResourceRepository(AuthCode.class)
@Component
public class AuthCodeRepository extends BaseRepository<AuthCode>{
    @Autowired
    protected RegisterService registerService;


    @Override
    @JsonApiFindAll
    public Iterable<AuthCode> findAll(final QueryParams requestParams) {
        return registerService.sendAuthCode(requestParams);
    }



}
